/**
 * 项目示例-列表表头
 * Date 2023-5-25 09:33:56
 * 可选参数可参考：https://element-plus.org/zh-CN/component/table.html#table-column-属性
 */
interface ExampleListItem {
  houseName: string;
  houseType: string;
  houseCode: string;
  num: string;
  area: string;
  price: string;
  rent: string;
  region: string;
  organNames: string;
  condition: string;
  nature: string;
  ability: string;
  maintainLimit: string;
  dutyOrganName: string;
  linkUserName: string;
  linkPhone: string;
  floor: string;
  coordinate: string;
  lastUpdateTime: string;
}

export const mapListColumns = [
  { type: 'index', label: '序号', width: 60, align: 'center' },
  {
    prop: 'affairName',
    label: '事务名称',
    width: 150,
    align: 'center',
    ellipsis: true
  },
  {
    prop: 'meanTime',
    label: '平均响应时间（ms）',
    sortable: true,
    width: 190,
    align: 'center',
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue
      } else {
        return '-'
      }
    }
  },
  {
    prop: 'peakTime',
    label: '响应时间峰值（ms）',
    sortable: true,
    width: 190,
    align: 'center',
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue
      } else {
        return '-'
      }
    }
  },{
    prop: 'errorRate',
    label: '错误率（%）',
    sortable: true,
    width: 150,
    align: 'center',
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue
      } else {
        return '-'
      }
    }
  },{
    prop: 'errorNumber',
    label: '错误次数',
    sortable: true,
    width: 145,
    align: 'center',
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue
      } else {
        return '-'
      }
    }
  },{
    prop: 'slowRequest',
    label: '慢请求率（%）',
    sortable: true,
    width: 165,
    align: 'center',
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue
      } else {
        return '-'
      }
    }
  },{
    prop: 'slowNumber',
    label: '慢请求次数',
    sortable: true,
    width: 145,
    align: 'center',
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue
      } else {
        return '-'
      }
    }
  },{
    prop: 'handlingCapacity',
    label: '吞吐量',
    sortable: true,
    width: 100,
    align: 'center',
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue
      } else {
        return '-'
      }
    }
  },{
    prop: 'throughputMinute',
    label: '每分钟吞吐量',
    sortable: true,
    width: 145,
    align: 'center',
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue
      } else {
        return '-'
      }
    }
  },
  {
    prop: 'use',
    label: '所属应用',
    width: 150,
    align: 'center',
    ellipsis: true
  }
]
